home *** CD-ROM | disk | FTP | other *** search
- #################################################################
- # #
- # Name: examples.rl #
- # Author: Marcus Geelnard #
- # Date: 10-Jul-1996 #
- # #
- # RayLab version: 1.1 #
- # #
- # Here are some examples of texture-patterns that are #
- # available in RayLab 1.1. #
- # #
- #################################################################
-
-
-
-
- DefTexture:
- phong 0.5 phongsize 50 diffuse 0.9 ambient 0.2
- :end
-
-
- #################################################################
- #
- # These nine spheres all have different texture patterns
- #
- #################################################################
-
- * Spots
-
- Sphere:
- radius 1 centre -2.5 0 2.5
- texture:
- pattern spots
- colormap 3
- 0.0 0.1 0.7 0.1
- 0.2 0.2 1.0 0.2
- 1.0 0.0 0.5 0.0
- transform:
- scale 0.3 0.3 0.3
- :end
- :end
- :end
-
-
- * Squares
-
- Sphere:
- radius 1 centre 0 0 2.5
- texture:
- pattern squares
- colormap 3
- 0.0 1.0 0.2 1.0
- 0.7 1.0 0.8 1.0
- 1.0 0.2 0.8 0.2
- transform:
- scale 0.3 0.3 0.3
- :end
- :end
- :end
-
-
- * Checker
-
- Sphere:
- radius 1 centre 2.5 0 2.5
- texture:
- pattern checker
- colormap 2
- 0 0.3 0.3 0.3
- 1 0.4 0.4 0.9
- transform:
- scale 0.3 0.3 0.3
- :end
- :end
- :end
-
-
-
- * White marble
-
- Sphere:
- radius 1 centre -2.5 0 0
- texture:
- pattern marble
- turbulence 0.4
- colormap 4
- 0.0 0.1 0.1 0.1
- 0.2 0.3 0.3 0.3
- 0.5 0.6 0.6 0.6
- 1.0 0.9 0.9 0.9
- transform:
- rotate 0 30 -65
- scale 0.6 0.6 0.6
- :end
- :end
- :end
-
-
- * Wood
-
- Sphere:
- radius 1 centre 0 0 0
-
- texture:
- pattern wood
- turbulence 0.2
- colormap 6
- 0.0 0.55 0.26 0.05
- 0.35 0.57 0.30 0.06
- 0.37 0.70 0.50 0.15
- 0.8 0.74 0.52 0.16
- 0.83 0.55 0.30 0.06
- 1.0 0.55 0.26 0.05
- phong 0.2 phongsize 8 ; Wood is not very shiny
- transform:
- scale 0.14 0.1 0.13
- rotate -40 -20 0
- :end
- :end
- :end
-
-
- * Burning (blurb)
-
- Sphere:
- radius 1 centre 2.5 0 0
- texture:
- pattern blurb
- turbulence 0.4
- colormap 4
- 0.0 1.0 1.0 0.0
- 0.2 1.0 0.6 0.0
- 0.6 0.7 0.3 0.0
- 1.0 1.0 0.0 0.0
- transform:
- scale 0.3 1 0.3
- :end
- :end
- :end
-
-
-
- * Gradient
-
- Sphere:
- radius 1 centre -2.5 0 -2.5
- texture:
- pattern gradient
- colormap 2
- 0 0.0 0.4 0.3
- 1 1.0 0.4 0.6
- transform:
- move -2.5 0 -2.5
- :end
- :end
- :end
-
-
- * Mandelbrot (reflective)
-
- Sphere:
- radius 1 centre 0.0 0 -2.5
- texture:
- pattern mandel
- colormap 4
- 0.00 0.2 0.3 0.2
- 0.02 1.0 0.0 0.0
- 0.50 0.0 0.0 1.0
- 1.00 1.0 0.0 1.0
- reflect 0.4 0.45 0.4
- transform:
- move -0.115 0.670 0.0
- scale 8.0 8.0 1.0
- rotate 90 0 0
- move 0.0 0 -2.5
- :end
- :end
- :end
-
-
- * Angular w. twist
-
- Sphere:
- radius 1 centre 2.5 0 -2.5
- texture:
- pattern angular
- colormap 4
- 0.00 1.0 0.0 1.0
- 0.33 0.0 0.0 1.0
- 0.66 1.0 0.0 0.0
- 1.00 0.0 1.0 0.0
- transform:
- twist 4.0
- move 2.5 0 -2.5
- :end
- :end
- :end
-
-
-
- #################################################################
- #
- # This is a psychadelic background plane
- #
- #################################################################
-
-
- Plane:
- normal 0 -1 0 offset -1.9
- texture:
- pattern blurb
- turbulence 0.35
- colormap 7
- 0.0 0.4 0.0 0.7 # The rainbow
- 0.3 0.0 0.0 0.9
- 0.4 0.0 0.4 1.0
- 0.6 0.0 1.0 0.0
- 0.75 1.0 1.0 0.0
- 0.9 1.0 0.0 0.0
- 1.0 0.4 0.0 0.0
- transform:
- scale 0.3 0.6 1.6
- :end
- :end
- :end
-
-
-
- #################################################################
- #
- # The light and the camera
- #
- #################################################################
-
-
- Light:
- location -900 -1600 1000
- color 1 1 1
- :end
-
- Camera:
- location 0 -50 0
- viewpoint 0 0 0
- aspect 4 3 20 ; Use exreme tele-zoom to avoid
- :end ; wide-angle effects
-
-